<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UndoResubmit.aspx.cs" Inherits="PPAP.Web.Part.UndoResubmit" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html>
<head>
    <title>PPAPTasks</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
    <meta content="C#" name="CODE_LANGUAGE">
    <meta content="JavaScript" name="vs_defaultClientScript">
    <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
    <script language="javascript">
        function add(id) {
            url = "Report.aspx?rid=" + id;
            PopUpWindow(url, 400, 150, 580, 400);
        }
        function print(id) {
            url = "Report.aspx?rid=" + id;
            //            PopUpWindow(url, 230, 0, 880, 720);
            open(url, 'newwindow', 'height=720,width=880,top=0,left=230,toolbar=yes,menubar=yes,scrollbars=yes,resizable=no,location=no,status=no');
        }
        function edit(id) {
            url = "SupplierPPARWeb.aspx?RID=" + id;
            // window.open(url, 'newwindow', 'left=200,top=60,width=970,height=600, toolbar=no, menubar=no, scrollbars=yes, resizable=no,location=no, status=no');
            //PopUpWindow(url, 400, 150, 580, 400);
            window.location.href = url;
        }
    </script>
    <style type="text/css">
        .button1
        {
            background: transparent url(../images/newimg/esc_bg.png) no-repeat scroll 0 0;
            width: 102px;
            height: 23px;
            border: none;
            color: White;
            font-weight: bold;
            cursor: pointer;
            margin: 0 0 0 0;
        }
    </style>
</head>
<body style="font-family: Arial, Helvetica, sans-serif;">
    <form id="Form1" method="post" runat="server">
    <font size='-1' color='gray'>Current position:My Task>>Undo Resubmit</font>
    <table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
        <tr>
            <td>
                <asp:DataGrid ID="dgList" HeaderStyle-BackColor="#E7E8E8" HeaderStyle-Font-Bold="true"
                    HeaderStyle-Height="32px" Width="100%" OnLoad="dgLoad" AutoGenerateColumns="False"
                    runat="server">
                    <Columns>
                        <asp:BoundColumn DataField="rownum" HeaderText="No.">
                            <ItemStyle HorizontalAlign="Left"></ItemStyle>
                        </asp:BoundColumn>
                        <asp:BoundColumn DataField="pparno" HeaderText="PPAR No.">
                            <ItemStyle HorizontalAlign="Left"></ItemStyle>
                        </asp:BoundColumn>
                        <asp:BoundColumn DataField="bdntpartno" HeaderText="BDNT Part No.">
                            <ItemStyle HorizontalAlign="Left"></ItemStyle>
                        </asp:BoundColumn>
                        <asp:BoundColumn DataField="bdntpartname" HeaderText="BDNT Part name">
                            <ItemStyle HorizontalAlign="Left"></ItemStyle>
                        </asp:BoundColumn>
                        <asp:BoundColumn DataField="color" HeaderText="Color">
                            <ItemStyle HorizontalAlign="Left"></ItemStyle>
                        </asp:BoundColumn>
                        <asp:BoundColumn DataField="bdntrevisionno" HeaderText="BDNT Revision No.">
                            <ItemStyle HorizontalAlign="Left"></ItemStyle>
                        </asp:BoundColumn>
                        <asp:BoundColumn DataField="bdntrevisionstatus" Visible="false" HeaderText="BDNT Revision status">
                            <ItemStyle HorizontalAlign="Left"></ItemStyle>
                        </asp:BoundColumn>
                        <asp:TemplateColumn HeaderText="PPAR status">
                            <ItemStyle HorizontalAlign="Left"></ItemStyle>
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# ShowAuditStatus(Eval("status").ToString()) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn  ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" >
                            <ItemStyle Width="20" />
                            <HeaderTemplate>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Button ID="ImageButton1" Text="Undo" CssClass="button1" 
                                    ToolTip='<%#Eval("ID") %>' runat="server" OnClick="ImageButton1_Click" />
                            </ItemTemplate>
                        </asp:TemplateColumn>
                    </Columns>
                    <HeaderStyle BackColor="#E7E8E8" Font-Bold="True" Height="32px"></HeaderStyle>
                </asp:DataGrid>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
